package cn.iocoder.boot.springai001.tools.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 生成SQL响应 VO
 *
 * @author Agent System
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "生成SQL响应")
public class GenerateSqlRespVO {

    @Schema(description = "生成的SQL语句", example = "SELECT SUM(amount) FROM sales WHERE YEAR(date)=2025")
    private String sql;

    @Schema(description = "用户问题", example = "查询2025年1月的销售总额")
    private String query;

    @Schema(description = "使用的表", example = "[\"sales\"]")
    private List<String> tables;

    @Schema(description = "是否成功", example = "true")
    private Boolean success;

    @Schema(description = "MySQL 5.7 兼容性", example = "true")
    private Boolean compatible;

    @Schema(description = "警告信息")
    private List<String> warnings;
}

